<?php if ( ! defined('BASEPATH')) exit('No direct script access allowed');
class User_model extends MY_Model {
	
	public function __construct(){
		parent::__construct();	
		$this->setTableName('u_c_user');
	}
	
	public function login($username,$password){
		$re = $this->select('classid','username="'.$username.'" AND password="'.$password.'"','classid desc','1');
		return $re;
	}
	
	public function register($data){
		$b = $this->insert($data);
		return $b;
	}
	
}
?>